@import '@/app/styles/variables';

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #f3f3f3;
}

.page {
  display: flex;
  gap: 32px;
}

.header {
  background: #fff;
}

.wrap {
  margin-top: 68px;
}

.course {
  display: flex;
  gap: 32px;
}

.floating_card_container {
  display: flex;
  position: sticky;
  top: calc(68px + 90px);
  left: 0;
  width: 336px;
  gap: 16px;
  flex-direction: column;
  z-index: 1;
}

.company_card {
  display: flex;
}

.sub {
  all: unset;
  color: #ababab;

  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 40px;
}

.sub_title {
  color: var(--simple-gray-evening, #ababab);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
  margin-left: 6px;
}

@include media(md) {
  .floating_card_container {
    width: 280px;
  }
}

.about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  align-self: stretch;
}

.info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  align-self: stretch;
}

.link {
  all: unset;
  color: var(--simple-blue-day, #337cec);
  cursor: pointer;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.mobile {
  display: none;
}

.desktop {
  display: unset;
}

.more {
  position: absolute;
  right: 0;
  bottom: 4px;
  color: var(--Simple-Blue-Day, #337cec);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  cursor: pointer;

  &:hover {
    color: var(--Simple-Blue-Day, #6f99d8);
  }

  &:active {
    color: var(--Simple-Blue-Day, #6f99d8);
  }
}

.description {
  overflow: hidden;
  width: 100%;
  color: #000;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 12;
  white-space: pre-wrap;
  line-clamp: 12;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  position: relative;
}

.description::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 25.4px;
  opacity: 1;
  background: linear-gradient(-90deg, #ffffff 10.91%, rgba(0, 0, 0, 0) 90.55%);
}

@include media(lg) {
  .course_info {
    padding: 40px;
  }
}

@include media(md) {
  .course_info {
    padding: 32px;
    gap: 40px;
  }
}

@include media(sm) {
  .about {
    gap: 16px;
  }
  .more {
    font-size: 16px;
    bottom: 0;
  }

  .description {
    font-size: 16px;
    line-height: 22px;
    -webkit-line-clamp: 8;
    white-space: pre-wrap;
    line-clamp: 8;
  }

  .description::after {
    width: 100%;
    height: 18.4px;
  }

  .mobile {
    display: unset;
  }

  .info {
    gap: 16px;
  }

  .desktop {
    display: none;
  }

  .card {
    height: 275px;
  }

  .floating_card_container {
    position: relative;
    width: 100%;
    top: 0;
    z-index: inherit;
  }

  .container {
    background: #f3f3f3;
  }

  .page {
    flex-direction: column;
    gap: 0;
  }

  .wrap {
    margin-top: 0;
  }

  .wrapper {
    padding: 0;
  }

  .footer {
    padding-bottom: 103px;
    background: #fff;
  }
}
